#ifndef EDITTOOLBUTTON_H
#define EDITTOOLBUTTON_H

#include <QToolButton>

class QLineEdit;
class EditToolButton : public QToolButton
{
    Q_OBJECT
public:
    EditToolButton(QWidget *parent = nullptr);

    void setText(const QString &text);

Q_SIGNALS:
    void editTextChanged(QString text);

protected:
      bool eventFilter(QObject *obj, QEvent *ev) override;

private:
    QLineEdit *m_lineEdit;
    QString m_text;
};

#endif // EDITTOOLBUTTON_H
